using System;
using System.Collections.Generic;
using System.Text;

namespace MeetingRoom.Support
{
    public abstract class Assert
    {
        public static void IsNotNull(object obj)
        {
            IsNotNull(obj, "Object cannot be null");
        }

        public static void IsNotNull(object obj, string message)
        {
            if (obj == null)
            {
                throw new ArgumentException(message);
            }
        }

        public static void IsType(object obj, Type type)
        {
            IsType(obj, type, "Object cannot be null!");
        }

        public static void IsType(object obj, Type type, string message)
        {
            if (obj.GetType() != (type))
            {
                throw new ArgumentException(message);
            }
        }
    }
}
